
            const config = require("./dbConfig");
import { MysqlDataContext } from "tiny-entity2/mysql/dataContextMysql"
import { Account } from "./models/account"
import { AccountPermits } from "./models/accountPermits"
import { AccountRoles } from "./models/accountRoles"
import { AccountUserName } from "./models/accountUserName"
import { AuditLog } from "./models/auditLog"
import { Component } from "./models/componet"
import { Condition } from "./models/condition"
import { DataChangeLog } from "./models/dataChangeLog"
import { DataRegister } from "./models/dataRegister"
import { DataRPermits } from "./models/dataRPermits"
import { DataSource } from "./models/dataSource"
import { Department } from "./models/department"
import { FlowNode } from "./models/flowNode"
import { Menu } from "./models/menu"
import { Message } from "./models/message"
import { MessageReceiverItem } from "./models/messageReceiverItem"
import { Organization } from "./models/organization"
import { OrganizationTree } from "./models/organizationTree"
import { OrgCodeRule } from "./models/orgCodeRule"
import { OrgCodeSeed } from "./models/orgCodeSeed"
import { OrgPageItem } from "./models/orgPageItem"
import { OrgWorkflowItem } from "./models/orgWorkflowItem"
import { Page } from "./models/page"
import { PageTmpItem } from "./models/pageTmpItem"
import { Path } from "./models/path"
import { Place } from "./models/place"
import { PlaceType } from "./models/placeType"
import { PlaceUseLog } from "./models/placeUseLog"
import { Role } from "./models/role"
import { Template } from "./models/template"
import { TmpComItem } from "./models/tmpComItem"
import { Token } from "./models/token"
import { User } from "./models/user"
import { Workflow } from "./models/workflow"
import { WorkflowNodeItem } from "./models/workflowNodeItem"
            export class ApiDataContext extends MysqlDataContext {
                private account: Account;
private accountPermits: AccountPermits;
private accountRoles: AccountRoles;
private accountUserName: AccountUserName;
private auditLog: AuditLog;
private component: Component;
private condition: Condition;
private dataChangeLog: DataChangeLog;
private dataRegister: DataRegister;
private dataRPermits: DataRPermits;
private dataSource: DataSource;
private department: Department;
private flowNode: FlowNode;
private menu: Menu;
private message: Message;
private messageReceiverItem: MessageReceiverItem;
private organization: Organization;
private organizationTree: OrganizationTree;
private orgCodeRule: OrgCodeRule;
private orgCodeSeed: OrgCodeSeed;
private orgPageItem: OrgPageItem;
private orgWorkflowItem: OrgWorkflowItem;
private page: Page;
private pageTmpItem: PageTmpItem;
private path: Path;
private place: Place;
private placeType: PlaceType;
private placeUseLog: PlaceUseLog;
private role: Role;
private template: Template;
private tmpComItem: TmpComItem;
private token: Token;
private user: User;
private workflow: Workflow;
private workflowNodeItem: WorkflowNodeItem;
                constructor(){
                    super(config);
                    this.account = new Account(this);
this.accountPermits = new AccountPermits(this);
this.accountRoles = new AccountRoles(this);
this.accountUserName = new AccountUserName(this);
this.auditLog = new AuditLog(this);
this.component = new Component(this);
this.condition = new Condition(this);
this.dataChangeLog = new DataChangeLog(this);
this.dataRegister = new DataRegister(this);
this.dataRPermits = new DataRPermits(this);
this.dataSource = new DataSource(this);
this.department = new Department(this);
this.flowNode = new FlowNode(this);
this.menu = new Menu(this);
this.message = new Message(this);
this.messageReceiverItem = new MessageReceiverItem(this);
this.organization = new Organization(this);
this.organizationTree = new OrganizationTree(this);
this.orgCodeRule = new OrgCodeRule(this);
this.orgCodeSeed = new OrgCodeSeed(this);
this.orgPageItem = new OrgPageItem(this);
this.orgWorkflowItem = new OrgWorkflowItem(this);
this.page = new Page(this);
this.pageTmpItem = new PageTmpItem(this);
this.path = new Path(this);
this.place = new Place(this);
this.placeType = new PlaceType(this);
this.placeUseLog = new PlaceUseLog(this);
this.role = new Role(this);
this.template = new Template(this);
this.tmpComItem = new TmpComItem(this);
this.token = new Token(this);
this.user = new User(this);
this.workflow = new Workflow(this);
this.workflowNodeItem = new WorkflowNodeItem(this);
                }
                get Account() { return this.account; }
get AccountPermits() { return this.accountPermits; }
get AccountRoles() { return this.accountRoles; }
get AccountUserName() { return this.accountUserName; }
get AuditLog() { return this.auditLog; }
get Component() { return this.component; }
get Condition() { return this.condition; }
get DataChangeLog() { return this.dataChangeLog; }
get DataRegister() { return this.dataRegister; }
get DataRPermits() { return this.dataRPermits; }
get DataSource() { return this.dataSource; }
get Department() { return this.department; }
get FlowNode() { return this.flowNode; }
get Menu() { return this.menu; }
get Message() { return this.message; }
get MessageReceiverItem() { return this.messageReceiverItem; }
get Organization() { return this.organization; }
get OrganizationTree() { return this.organizationTree; }
get OrgCodeRule() { return this.orgCodeRule; }
get OrgCodeSeed() { return this.orgCodeSeed; }
get OrgPageItem() { return this.orgPageItem; }
get OrgWorkflowItem() { return this.orgWorkflowItem; }
get Page() { return this.page; }
get PageTmpItem() { return this.pageTmpItem; }
get Path() { return this.path; }
get Place() { return this.place; }
get PlaceType() { return this.placeType; }
get PlaceUseLog() { return this.placeUseLog; }
get Role() { return this.role; }
get Template() { return this.template; }
get TmpComItem() { return this.tmpComItem; }
get Token() { return this.token; }
get User() { return this.user; }
get Workflow() { return this.workflow; }
get WorkflowNodeItem() { return this.workflowNodeItem; }
                async CreateDatabase(){
                    await super.CreateDatabase();
                    await super.CreateTable(this.account);
await super.CreateTable(this.accountPermits);
await super.CreateTable(this.accountRoles);
await super.CreateTable(this.accountUserName);
await super.CreateTable(this.auditLog);
await super.CreateTable(this.component);
await super.CreateTable(this.condition);
await super.CreateTable(this.dataChangeLog);
await super.CreateTable(this.dataRegister);
await super.CreateTable(this.dataRPermits);
await super.CreateTable(this.dataSource);
await super.CreateTable(this.department);
await super.CreateTable(this.flowNode);
await super.CreateTable(this.menu);
await super.CreateTable(this.message);
await super.CreateTable(this.messageReceiverItem);
await super.CreateTable(this.organization);
await super.CreateTable(this.organizationTree);
await super.CreateTable(this.orgCodeRule);
await super.CreateTable(this.orgCodeSeed);
await super.CreateTable(this.orgPageItem);
await super.CreateTable(this.orgWorkflowItem);
await super.CreateTable(this.page);
await super.CreateTable(this.pageTmpItem);
await super.CreateTable(this.path);
await super.CreateTable(this.place);
await super.CreateTable(this.placeType);
await super.CreateTable(this.placeUseLog);
await super.CreateTable(this.role);
await super.CreateTable(this.template);
await super.CreateTable(this.tmpComItem);
await super.CreateTable(this.token);
await super.CreateTable(this.user);
await super.CreateTable(this.workflow);
await super.CreateTable(this.workflowNodeItem);
                    return true;
                }

                GetEntityObjectList(){
                    return [this.account,this.accountPermits,this.accountRoles,this.accountUserName,this.auditLog,this.component,this.condition,this.dataChangeLog,this.dataRegister,this.dataRPermits,this.dataSource,this.department,this.flowNode,this.menu,this.message,this.messageReceiverItem,this.organization,this.organizationTree,this.orgCodeRule,this.orgCodeSeed,this.orgPageItem,this.orgWorkflowItem,this.page,this.pageTmpItem,this.path,this.place,this.placeType,this.placeUseLog,this.role,this.template,this.tmpComItem,this.token,this.user,this.workflow,this.workflowNodeItem];
                }
            }
            